<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>显示用户</title>
<style type="text/css">
    table,table td,table th {
        border: 1px solid gray;
        border-collapse: collapse;
    }
    a {
        height: 30px;
        line-height: 30px;
        border: 1px solid black;
        background: gray;
        color: white;
        text-decoration: none;
        padding: 3px;
        font-weight: bold;
    }
</style>
</head>
<body>
<div style="margin: 200px; width: 600px;">
    <table width="100%">
        <thead>
        <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>密码</th>
            <th>年龄</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${list }" var="user">
            <tr>
                <td>${user.id }</td>
                <td>${user.username }</td>
                <td>${user.password }</td>
                <td>${user.age }</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
</body>
</html>
